projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8780906
)
accelgroup: Fix an invalid write
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 10 Apr 2020 12:24:03 +0000
(08:24 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 10 Apr 2020 12:24:03 +0000
(08:24 -0400)
This was lost by accident in
d110fddbce14d13c
.
Fixes: #2602
gtk/gtkaccelgroup.c
patch
|
blob
|
history
diff --git
a/gtk/gtkaccelgroup.c
b/gtk/gtkaccelgroup.c
index 0cf685c2d82b1c848052f5b01a3347cddc3632f1..964974abb43470d5e6b27523564a04abb9d6f8aa 100644
(file)
--- a/
gtk/gtkaccelgroup.c
+++ b/
gtk/gtkaccelgroup.c
@@
-592,7
+592,7
@@
gtk_accelerator_name (guint accelerator_key,
keyval_name = "";
saved_mods = accelerator_mods;
- l =
0
;
+ l =
strlen (keyval_name)
;
if (accelerator_mods & GDK_SHIFT_MASK)
l += sizeof (text_shift) - 1;
if (accelerator_mods & GDK_CONTROL_MASK)